﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Abstract_Factory
{
    public class Car
    {
        public Engine Engine { get; set; }
        public Wheels Wheels { get; set; }

        public void Print()
        {
            Console.WriteLine("Deze auto heeft een " + Engine.Description + " en " + Wheels.Description);
            Console.WriteLine("TotaalPrijs: " + (Engine.Price + Wheels.Price));
        }
    }
}
